//
//  IDOLeadingPageController.h
//  IDOLeadingPageController
//
//  Created by 卓勇 on 2017/6/1.
//  Copyright © 2017年 zhuoyong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IDOLeadingPageCell.h"

@class IDOLeadingPageController;

typedef void(^IDOLeadingPageSetupCellHandler)(IDOLeadingPageCell *cell, NSIndexPath *indexPath);
typedef void(^IDOLeadingPageFinishHandler)(IDOLeadingPageController *leadingPageController, UIButton *finishButton, NSIndexPath *indexPath);

@interface IDOLeadingPageController : UIViewController

- (instancetype)initWithNumberOfPages:(NSInteger)numberOfPages setupCellHandler:(IDOLeadingPageSetupCellHandler)setupCellHandler finishHandler:(IDOLeadingPageFinishHandler)finishHandler;

@property (nonatomic, strong, readonly) UICollectionView *collectionView;
@property (nonatomic, strong, readonly) UIPageControl *pageControl;

@end
